/* 
 * File:   EliminarCampania.h
 * Author: agu
 *
 * Created on 22 de junio de 2014, 2:44
 */

#ifndef ELIMINARCAMPANIA_H
#define	ELIMINARCAMPANIA_H
#include <gtkmm-3.0/gtkmm.h>

class EliminarCampania: public Gtk::Window  {
public:
    EliminarCampania();
    void setWindowsBack(Gtk::Window *windowBack);
    void run();
    virtual ~EliminarCampania();
private:
    void close();
    void back();
    void loadRows();
    void loadWidgets();
    void connectWidgets();
    void addColumns();
    void loadCampaignsDirectory(Gtk::TreeModel::Row row);
    void select(const Gtk::TreeModel::Path& path,
            Gtk::TreeViewColumn* /* column */);

    //Tree model columns:
    class ModelColumns : public Gtk::TreeModel::ColumnRecord {
    public:

        ModelColumns() {
            add(m_col_name);
        }
        Gtk::TreeModelColumn<Glib::ustring> m_col_name;
    };
    ModelColumns m_Columns;

    //Child widgets:
    Gtk::Box m_VBox;
    Gtk::Window *windowsBack;
    Gtk::ScrolledWindow m_ScrolledWindow;
    Gtk::TreeView m_TreeView;
    Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
    Gtk::ButtonBox m_ButtonBox;
    Gtk::Button m_Button_Back;

};

#endif	/* ELIMINARCAMPANIA_H */

